//获取商品属性的接口文件
import request from "@/utils/request";

//获取三级分类属性
export const reqCategory1Id=()=>{
  return request({url:'/admin/product/getCategory1',method:'GET'})
}
export const reqCategory2Id=(category1Id)=>{
  return request({url:`/admin/product/getCategory2/${category1Id}`,method:'GET'})
}
export const reqCategory3Id=(category2Id)=>{
  return request({url:`/admin/product/getCategory3/${category2Id}`,method:'GET'})
}

//获取属性列表
export const reqAttrList=(category1Id,category2Id,category3Id)=>{
  return request({url:`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`,method:'get'})
}

//添加属性值
export const reqSaveAttr=(data)=>request({url:"/admin/product/saveAttrInfo",method:'post',data})
